﻿#pragma once

#include <QItemDelegate>

// 假期配置的代理UI
class HolidayOptionDelegate : public QItemDelegate
{
	Q_OBJECT

public:
	HolidayOptionDelegate(QObject *parent);
	~HolidayOptionDelegate();

	QWidget *createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index) const;

	void setEditorData(QWidget * editor, const QModelIndex & index) const;

	void setModelData(QWidget * editor, QAbstractItemModel * model, const QModelIndex & index) const;

	void updateEditorGeometry(QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index) const;
};
